LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := BearBabyDaily_shared

LOCAL_MODULE_FILENAME := libBearBabyDaily

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/base/CCPhysicsSprite.cpp \
                   ../../Classes/admob/CCAdView.cpp \
                   ../../Classes/playHaven/PlayHavenHelper.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/scene/GameScene.cpp \
                   ../../Classes/scene/MainScene.cpp \
                   ../../Classes/layer/main/MainMenuLayer.cpp \
                   ../../Classes/layer/game/BackgroundLayer.cpp \
                   ../../Classes/layer/game/PhysicsLayer.cpp \
                   ../../Classes/layer/game/ScoreLayer.cpp \
                   ../../Classes/layer/game/MenuLayer.cpp \
                   ../../Classes/layer/game/OptionMenuLayer.cpp \
                   ../../Classes/layer/game/EndLayer.cpp \
                   ../../Classes/layer/game/GLES-Render.cpp \
									 ../../Classes/entity/GameEntity.cpp \
								   ../../Classes/entity/topography/TopographyManager.cpp \
								   ../../Classes/entity/topography/Topography.cpp \
								   ../../Classes/entity/topography/Ground.cpp \
								   ../../Classes/entity/prop/Prop.cpp \
								   ../../Classes/entity/prop/Gold.cpp \
									 ../../Classes/entity/obstacle/Obstacle.cpp \
									 ../../Classes/entity/obstacle/Tortoise.cpp \
								   ../../Classes/entity/player/Player.cpp \
									 ../../Classes/logic/ContactListener.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
										$(LOCAL_PATH)/../../Classes/admob \
										$(LOCAL_PATH)/../../Classes/playHaven \
										$(LOCAL_PATH)/../../Classes/base \
										$(LOCAL_PATH)/../../Classes/scene \
										$(LOCAL_PATH)/../../Classes/layer/game \
										$(LOCAL_PATH)/../../Classes/layer/main \
										$(LOCAL_PATH)/../../Classes/entity \
										$(LOCAL_PATH)/../../Classes/entity/topography \
										$(LOCAL_PATH)/../../Classes/entity/player \
										$(LOCAL_PATH)/../../Classes/entity/obstacle \
										$(LOCAL_PATH)/../../Classes/entity/prop \
										$(LOCAL_PATH)/../../Classes/logic
												

LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static

LOCAL_CFLAGS += -DCC_ENABLE_BOX2D_INTEGRATION=1
LOCAL_EXPORT_CFLAGS += -DCC_ENABLE_BOX2D_INTEGRATION=1
LOCAL_CPPFLAGS += -DCC_ENABLE_BOX2D_INTEGRATION=1
LOCAL_EXPORT_CPPFLAGS += -DCC_ENABLE_BOX2D_INTEGRATION=1

include $(BUILD_SHARED_LIBRARY)

$(call import-module,cocos2dx)
$(call import-module,CocosDenshion/android)
$(call import-module,external/Box2D)
